package cn.jiyun.consumer.client;

import cn.jiyun.consumer.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Fay
 * @date 2022/6/26&11:30
 */
@FeignClient(value = "user-service",fallback = UserClientFallback.class )
public interface UserClient {
    @GetMapping("/user/findById/{id}")
    User findById(@PathVariable("id") Long id);
}
